<div id="ContentGroup">
    <div class="count-header">
        <a>通知信息添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="TZXX_Insert" data-role="form" data-event="finish" data-type="post" data-url="<{'TZXX_Insert_Action'|U}>">
                <input type="hidden" id="TZXX_BH_ORA"  name="TZXX_BH_ORA" value="<{$Model->TZXX_BH|security_encript}>" />
                <div class="count-content-title">通知信息</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <{*<div class="form-list-item">*}>
                    <{*<label class="form-list-item-label">用户信息</label>*}>
                    <{*<{YHXX::create($Model->YHXX_BH)->YHXX_XM}>*}>
                    <{*<input type="hidden" name="YHXX_BH" value="<{$Model->YHXX_BH}>">*}>
                    <{*<{$yhxx= YHXX::query()}>*}>
                    <{*<{'YHXX_BH'|html_dropdownlist:$yhxx.DataList:$Model->YHXX_BH:'YHXX_BH':'YHXX_XM'}>*}>
                    <{*<p class="form-list-item-tip"></p>*}>
                <{*</div>*}>
                <div class="form-list-item">
                    <label class="form-list-item-label">栏目信息</label>
                    <{*<{LMXX::create($Model->LMXX_BH)->LMXX_MC}>*}>
                    <{*<input type="hidden" name="LMXX_BH" value="<{$Model->LMXX_BH}>">*}>
                    <{$lmxx= LMXX::query()}>
                    <{'LMXX_BH'|html_dropdownlist:$lmxx.DataList:$Model->LMXX_BH:'LMXX_BH':'LMXX_MC'}>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">通知显示顺序</label>
                    <{*<{TZXSSX::create($Model->TZXSSX_BH)->TZXSSX_MC}>*}>
                    <{*<input type="hidden" name="TZXSSX_BH" value="<{$Model->TZXSSX_BH}>">*}>
                    <{$tzxssx= TZXSSX::query()}>
                    <{'TZXSSX_BH'|html_dropdownlist:$tzxssx.DataList:$Model->TZXSSX_BH:'TZXSSX_BH':'TZXSSX_MC'}>
                    <p class="form-list-item-tip">编号越小显示位置越靠前</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>标题</label>
                    <input type="text" id="TZXX_BT" name="TZXX_BT" value="<{$Model->TZXX_BT }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>关键字</label>
                    <input type="text" id="TZXX_GJZ" name="TZXX_GJZ" value="<{$Model->TZXX_GJZ }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>类型</label>
                    <{'TZXX_LX'|html_dropdownlist:["超文本" , "超链接"]:$Model->TZXX_LX}>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>日期</label>
                    <input type="text" readonly="readonly" id="TZXX_RQ"  name="TZXX_RQ"  value="<{$Model->TZXX_RQ }>" />
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>状态</label>
                    <{'TZXX_ZT'|html_dropdownlist:["显示" , "隐藏"]:$Model->TZXX_ZT}>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>超链接</label>
                    <input type="text" id="TZXX_CLJ" name="TZXX_CLJ" value="<{$Model->TZXX_CLJ }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="count-content-title">内容</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div style="color: red;">推荐使用firefox、360(极速模式)、chrome、IE9以上、IE8兼容模式编辑；超文本内容建议直接粘贴纯文本。</div>
                <textarea id="TZXX_NR" name="TZXX_NR"><{$Model->TZXX_NR }></textarea>
            </form>     
            <div class="form-operation">
                <span class="button" id="TZXX_Insert-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#TZXX_Insert").vtip();//开启鼠标提示.
        
        //客户端验证脚本
        $("#TZXX_Insert").validate({
            rules:{
                "TZXX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "YHXX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "LMXX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "TZXSSX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "TZXX_BT":{
                    "maxbytelength":200 ,
                    "required":true 
                }, 
                "TZXX_GJZ":{
                    "maxbytelength":200 ,
                    "required":true 
                }, 
                "TZXX_LX":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "TZXX_RQ":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "TZXX_ZT":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "TZXX_CLJ":{
                    "maxbytelength":500 ,
                    "required":true 
                }, 
                "TZXX_SJC":{
                    "maxbytelength":50 
                }, 
                "TZXX_IPC":{
                    "maxbytelength":50 
                }, 
                "TZXX_YHC":{
                    "maxbytelength":50 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#TZXX_Insert").trigger("finish");
            }
        });
    
        $("[name=TZXX_RQ]").datepicker({changeMonth: true,changeYear: true});
        var ue_tzxx_nr = new UE.ui.Editor({
        initialFrameHeight: 600  //初始化编辑器高度,默认600
        , iframeCssUrl: '__PUBLIC__/Styles/lib/ueditor/base.css' //请在__PUBLIC__/Styles/lib/ueditor下新建样式表并引用base.css
        });
        ue_tzxx_nr.render("TZXX_NR");
        $("#TZXSSX_BH").attr("data-tip","编号越小显示位置越靠前");
        $("#TZXX_Insert-Submit").click(function () {
            $("#TZXX_Insert").submit();
        });
    });
</script>
